<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <!--移动端的预览设置，用于适配移动端-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="/Semantic-UI-CSS-master/semantic.min.css">
    <link rel="stylesheet" href="/css/myblog.css">
    <link rel="icon" href="/images/闪电.ico" sizes="32x32">
    <title>后台管理</title>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?7cd3e5b5274253178c805c4447a51941";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279472717'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1279472717%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script>
<body>
    <!--导航-->
    <div th:replace="~{admin/blogs::adminNav}"></div>

    <!--二级导航-->
    <div class="ui menu attached inverted ">
        <div class="ui container" >
            <a href="/admin/types-input" class="active item" >新增</a>
            <a href="/admin/types" class="item">列表</a>
        </div>
    </div>
    <!--中间内容-->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <br>
            <br>
            <br>
            <form action="/type" class="ui form segment inverted" method="post" >
                <input type="hidden" name="_method" th:value="${method}">
                <input type="hidden" name="id" th:value="${type?.getId()}">
                <div class="fields inline">
                    <div class="field">
                        <input type="text" name="name" placeholder="分类专栏名称" th:value="${type?.getName()}">
                    </div>

                    <div class="field right aligned">
                        <button class="ui button teal" type="submit">保存</button>
                    </div>
                </div>
                <div class="field required">
                    <textarea name="introduction" placeholder="专栏简介" th:text="${type?.getIntroduction()}"></textarea>
                </div>
            </form>
        </div>
    </div>
    <br>
    <br>
    <br>
     <!--底部footer-->
    <div th:replace="~{index::footer}"></div>

<script src="/js/jquery-3.5.1.min.js"></script>
<script src="/Semantic-UI-CSS-master/semantic.min.js"></script>

<script type="text/javascript">
    $("#b1").click(function (){
        $(".m-item").toggleClass("m-mobile-hide");
    });
    $('#payButton').popup({
    popup:$('.popup.payQR'),
    on:'click',
    position:'bottom center'
    });
    $('.ui.dropdown').dropdown({
        on: 'hover'
    })
    $('.ui.form').form({
        fields:{
            title:{
                identifier:'title',
                rules:[{
                    type:'empty',
                    prompt:'标题：请输入博客标题'
                }]
            }
        }
    })
</script>
<!--    <script src="https://myhkw.cn/player/js/player.js" id="myhk" key="160861313283" m="1"></script>-->
</body>
</html>